{include file="public/header" /}
<style>
body{
    background: #FFF;
}
.page{
	min-height: auto;
}
</style>
<div class="page">
    <table class="ds-default-table nobdb">
        <tbody>
        <thead>
        <tr>
            <th colspan="6">小订单信息</th>
        </tr>
        </thead>
            <tr>
                <td><label>小订单编号</label></td>
                <td><label>供应商名称</label></td>
                <td><label>运营商名称</label></td>
                 <td><label>状态</label></td>
                <td><label>操作</label></td>
            </tr>
            <?php foreach($order_list as $k=>$v){?>
            <tr>
                <td ><?php echo $v['order_sn']; ?></td>
                <td><label>
                    {if condition="($v.order_type==1)"}
                        <?php echo $v['store_name']; ?>
                    {elseif condition="($v.order_type==2)"}
                         暂无
                    {elseif condition="($v.order_type==3)"}
                        <?php echo $v['store_name']; ?>
                    {/if}
                        
                    </label>
                </td>
                <td><label><?php echo $v['yys_name']; ?></label></td>
                <td><label>
                    <!--订单状态：0:已取消 10:未付款 20:已付款 30:已发货 40:已收货-->
                    {if condition="$v.orderproject_id gt '0'"}
                        {if condition="($v.project_order_status==40)"}已完成
                        {elseif condition="($v.project_order_status!=40)"}
                        {$project_order_status[$v['zhu_order_state']]}
                        {/if}
                    {elseif condition="$v.orderproject_id eq '0'"}
                        {$order_status[$v['order_state']]}
                    {elseif condition="$v.orderservice_id gt '0'"}
                        {$service_order_status[$v['order_state']]}
                    {/if}
                </label>
               </td>   
              <td> <a href="{:url('Order/show_order',['order_id'=>$v.order_id])}" class="dsui-btn-view"><i class="iconfont"></i>查看详情</a></td>
            </tr>
            <?php }?>
        </tbody>
    </table>
    <?php if(isset($invoice_info)){ ?>
    <table class="ds-default-table nobdb">
        <tbody>
        <thead>
        <tr>
            <th colspan="6">发票信息</th>
        </tr>
        </thead>
        <tr>
            <th>发票类型：</th>
            <td>{$invoice_info.name}</td>
            <th>发票内容：</th>
            <td>{$invoice_info.invoice_content}</td>
            <th>发票抬头：</th>
            <td>
                <?php if($invoice_info['billing_type']==1){ ?>
                个人
                <?php }else if($invoice_info['billing_type']==2){?>
                单位
                <?php }else{ ?>
                全部
                <?php }?>

            </td>
        </tr>
        <!--<?php if($invoice_info['billing_type']=='1'){ ?>-->
        <!--<tr>-->
            <!--<th>电子邮箱：</th>-->
            <!--<td>{$invoice_info.invoice_email}</td>-->
            <!--<th>手机号码：</th>-->
            <!--<td>{$invoice_info.phone}</td>-->
        <!--</tr>-->
        <!--<?php }?>-->
        <?php if($invoice_info['billing_type']=='2'&&$invoice_info['type']=='1'){ ?>
        <tr>
            <th>注册地址：</th>
            <td>{$invoice_info.invoice_reg_addr}</td>
            <th>注册电话：</th>
            <td>{$invoice_info.invoice_reg_phone}</td>
            <th>开户银行：</th>
            <td>{$invoice_info.invoice_reg_bname}</td>
        </tr>

        <?php } ?>

        <?php if($invoice_info['type']==2){ ?>
        <tr>
            <th>手机号码：</th>
            <td>{$invoice_info.invoice_phone}</td>
            <th>电子邮箱：</th>
            <td>{$invoice_info.invoice_email}</td>
        </tr>
        <?php } ?>

        <?php if($invoice_info['billing_type']=='2'){ ?>
        <tr>
            <th>单位名称：</th>
            <td>{$invoice_info.invoice_company}</td>
            <th>单位税号：</th>
            <td>{$invoice_info.invoice_company_code}</td>
        </tr>
        <?php } ?>
        <?php if($invoice_info['billing_type']=='3'&&$invoice_info['type']=='3'){ ?>
        <tr>
            <th>单位名称：</th>
            <td>{$invoice_info.invoice_company}</td>
            <th>单位税号：</th>
            <td>{$invoice_info.invoice_company_code}</td>
        </tr>
        <tr>
            <th>注册地址：</th>
            <td>{$invoice_info.invoice_reg_addr}</td>
            <th>注册电话：</th>
            <td>{$invoice_info.invoice_reg_phone}</td>
            <th>开户银行：</th>
            <td>{$invoice_info.invoice_reg_bname}</td>
        </tr>
        <tr>
            <th>银行账号：</th>
            <td>{$invoice_info.invoice_reg_baccount}</td>
        </tr>
        <tr>
            <th>收货人：</th>
            <td>{$invoice_info.invoice_rec_name}</td>
            <th>收货人电话：</th>
            <td>{$invoice_info.invoice_rec_mobphone}</td>
            <th>收货人地址：</th>
            <td>{$invoice_info.invoice_goto_addr}</td>
        </tr>
        <?php } ?>

        <?php if($invoice_info['type']=='1'){ ?>
        <tr>
            <th>收货人：</th>
            <td>{$invoice_info.invoice_rec_name}</td>
            <th>收货人电话：</th>
            <td>{$invoice_info.invoice_rec_mobphone}</td>
            <th>收货人地址：</th>
            <td>{$invoice_info.invoice_goto_addr}</td>
        </tr>
        <?php } ?>

        <?php if($app_order_info['invoice_status']!='1'){ ?>
        <tr>
            <th>审核状态：</th>
            <?php if($app_order_info['invoice_status']=='2'){ ?>
            <td>未通过</td>

            <?php }else if($app_order_info['invoice_status']=='3'){ ?>
            <td>通过</td>
            <?php }?>
            <?php if($app_order_info['invoice_status']=='2'){ ?>
            <th>未通过原因：</th>
            <td>{$app_order_info['invoice_no_content']}</td>
            <?php } ?>
        </tr>
        <?php } ?>
        </tbody>
        </table>
    <?php }?>
</div>
</div>
<script>
</script>